<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS3 Animation加载动画</title>
</head>
<style>
    *{
        margin: 0;
    }
    .container{
        width: 100px;
        height: 100px;
        margin: 100px auto;
        position: relative;
    }
    .container div{
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%,0);
        transform-origin: 50% 50px;
        animation-name: myLoading;
        animation-duration: 1s;
        animation-iteration-count: infinite;
        border-radius: 50%;
        background-color: #08f;
        opacity: 0.8;
        
    }

    .container div:nth-child(1){
        width: 20px;
        height: 20px;
        animation-delay: 0s;
    }
    .container div:nth-child(2){
        width: 18px;
        height: 18px;
        animation-delay: 0.1s;
    }
    .container div:nth-child(3){
        width: 16px;
        height: 16px;
        animation-delay: 0.2s;
    }
   
    @keyframes myLoading{
       to{
        transform: translate(-50%,0) rotate(1turn);
       }
    }
</style>
<body>
    <div class="container">
        <div></div>
        <div></div>
        <div></div>
    </div>
</body>
</html>